// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';

// 导入路由的包
import VueRouter from "vue-router";
//安装路由
Vue.use(VueRouter);

//导入vue-resource
import VueResource from "vue-resource";
Vue.use(VueResource);

//导入App根组件
import app from './App';

//导入mui样式
import "./lib/mui/css/mui.min.css"
import "./lib/mui/css/icons-extra.css"

//按需导入Mint-UI中的组件
import { Header,Swipe,SwipeItem} from 'mint-ui';
Vue.component(Header.name, Header);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);

//导入自己的router.js路由模块
import router from "./router.js"

Vue.config.productionTip = false


/* eslint-disable no-new */
new Vue({
  el: '#app',
  render:c=>c(app),
  router
})
